#include<cppr.hpp>
using namespace std;

class A
{
    public:
    A()
    {
       
    }
    operator char()
    {
        return 'a';//类型转换函数
    }
    operator int()
    {
        return 10;
    }
};

int main(int argc, char const *argv[])
{
    A a;
    char c = char(a);
    cout <<"c = "<< c << endl;
    int i = int(a);
    cout <<"i = "<< i << endl;
    double d = (double)i;
    cout <<"d = "<< d << endl;
    return 0;
}
